# -*- mode: python -*-
# Contributed by VeXocide - http://www.vexocide.org

# system imports
import random

# DDB imports
from ddb.tools import syntax

# DDB exports
EXPORT=['Eightball']

class Eightball:
    ALIAS = {'8ball': 'eightball'}
    ans = [
        'Signs point to yes.',
        'Yes.',
        'Reply hazy, try again.',
        'Without a doubt.',
        'My sources say no.',
        'As I see it, yes.',
        'You may rely on it.',
        'Concentrate and ask again.',
        'Outlook not so good.',
        'It is decidedly so.',
        'Better not tell you now.',
        'Very doubtful.',
        'Yes - definitely.',
        'It is certain.',
        'Cannot predict now.',
        'Most likely.',
        'Ask again later.',
        'My reply is no.',
        'Outlook good.',
        'Don\'t count on it.',
        'Yes, in due time.',
        'My sources say no.',
        'Definitely not.',
        'You will have to wait.',
        'I have my doubts.',
        'Outlook so so.',
        'Looks good to me!',
        'Who knows?',
        'Looking good!',
        'Probably.',
        'Are you kidding?',
        'Go for it!',
        'Don\'t bet on it.',
        'Forget about it.'
    ]

    def __init__(self):
        random.seed()

    def eightball(self, event):
        """<question>

        Gives you an answer to your question."""
        if not event.args:
            return event.reply(syntax())
        event.reply(random.choise(self.ans))

# vim:ts=4:sw=4:et:
